import request from '@/utils/request'

// 查询crm中间列表
export function listCrmucmid(query) {
  return request({
    url: '/system/crmucmid/list',
    method: 'get',
    params: query
  })
}

// 查询crm中间详细
export function getCrmucmid(id) {
  return request({
    url: '/system/crmucmid/' + id,
    method: 'get'
  })
}

// 新增crm中间
export function addCrmucmid(data) {
  return request({
    url: '/system/crmucmid',
    method: 'post',
    data: data
  })
}

// 修改crm中间
export function updateCrmucmid(data) {
  return request({
    url: '/system/crmucmid',
    method: 'put',
    data: data
  })
}

// 删除crm中间
export function delCrmucmid(id) {
  return request({
    url: '/system/crmucmid/' + id,
    method: 'delete'
  })
}
